﻿//
// Created by francklinson on 2021/3/13.
//

#include <iostream>

#define ZERO 0

#include <climits>

int main()
{
    using namespace std;
    short sam = SHRT_MAX;
    unsigned short sue = sam;
    cout << "Sam has " << sam << " dollars and Sue has " << sue;
    cout << " dollars deposited." << endl
         << "Add 1$ to each account." << endl << "Now ";
    sam++;
    sue++;
    cout << "Sam has " << sam << " dollars and Sue has " << sue << " dollars deposited.\nPoor Sam!!\n";
    sam = ZERO;
    sue = ZERO;
    cout << "Sam has " << sam << " dollars and Sue has " << sue << " dollars deposited." << endl;
    cout << "Take 1$ from each account." << endl;
    cout << "Now ";
    sam--;
    sue--;
    cout << "Sam has " << sam << " dollars. Sue has " << sue << " dollars deposited." << endl;
    cout << "Lucky Sue!";
    return 0;


}